package com.qyhl.cloud.webtv.module_integral.serviceimp;

import android.content.Context;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.qyhl.webtv.commonlib.constant.ServicePathConstant;
import com.qyhl.webtv.commonlib.service.IntergralService;
import com.qyhl.cloud.webtv.module_integral.common.IntergralUtils;

/**
 * 积分对外暴露接口实现
 * @author helin
 * @date  2019年3月28日17:46:29
 */
@Route(path = ServicePathConstant.INTERGRAL_SERICE)
public class IntergralServiceImpl implements IntergralService {
    private Context mContext;


    @Override
    public void init(Context context) {
        mContext =context;
    }

    @Override
    public void gainCoin(String type, String name,GainCoinCallBack coinCallBack) {
        IntergralUtils.getInstance().getCoin(type,name,coinCallBack);
    }

    @Override
    public void getSignInfo(SignInCallBack callBack) {
        IntergralUtils.getInstance().getSignInfo(callBack);
    }

    @Override
    public void getLuckDraw(LuckDraw callBack) {
        IntergralUtils.getInstance().getLuckDraw(callBack);
    }

    @Override
    public void getExchangerRate(ExchangerRate callBack) {
        IntergralUtils.getInstance().getExchangerRate(callBack);
    }


}
